package com.wyc.serviceDriverUser.controller;

import com.wyc.internalCommon.result.ApiResult;
import com.wyc.serviceDriverUser.dto.DriverUserWorkStatus;
import com.wyc.serviceDriverUser.service.DriverUserWorkStatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * 司机工作状态controller
 */
@RestController
public class DriverUserWorkStatusController {

    @Autowired
    private DriverUserWorkStatusService workStatusService;

    @PostMapping("/driver-user-work-status")
    public ApiResult updateWorkStatus(@RequestBody DriverUserWorkStatus workStatus){
        return workStatusService.updateWorkStatus(workStatus);
    }

}
